﻿using FluentValidation.Attributes;
using Nop.Admin.Validators.WindAlert;
using Nop.Web.Framework;
using Nop.Web.Framework.Localization;
using Nop.Web.Framework.Mvc;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace Nop.Admin.Models.WindAlert
{
    [Validator(typeof(SpotsGroupValidator))]
    public partial class SpotsGroupModel : BaseNopEntityModel
    {
        public SpotsGroupModel()
        {
            AvailableSpots = new List<SpotModel>();
        }

        [NopResourceDisplayName("Admin.WindAlert.Spots.Fields.Name")]
        [AllowHtml]
        public string Name { get; set; }

        [NopResourceDisplayName("Admin.WindAlert.Spots.Fields.Published")]
        public bool Published { get; set; }

        [NopResourceDisplayName("Admin.WindAlert.Spots.Fields.DisplayOrder")]
        public int DisplayOrder { get; set; }

        [NopResourceDisplayName("Admin.WindAlert.Alerts.Fields.AlertOption")]
        public virtual string AlertOptionName { get; set; }
        public virtual int AlertOptionId { get; set; }

        [NopResourceDisplayName("Admin.WindAlert.Alerts.Fields.LastReportedWindSpeed")]
        public virtual int LastReportedWindSpeed { get; set; }

        [NopResourceDisplayName("Admin.WindAlert.Alerts.Fields.LastReportedWave")]
        public virtual double LastReportedWave { get; set; }

      
        public List<SpotModel> AvailableSpots { get; set; }
        public int[] SelectedSpotsIds { get; set; }
        
      
    }

}